package com.eddie.jdbc.constant;

/**
 * @author Eddie
 * @date 2022/3/3 20:53
 */

public class PetConstant {

    public enum StatusEnum {
        /**
         * 宠物购买状态
         */
        BE_SOLD(-1,"已被购买"),
        TO_BE_SOLD(1,"待出售");
        private int code;
        private String msg;

        StatusEnum(int code,String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }

    public enum SaleTypeEnum {
        /**
         * 宠物购买状态
         */
        WARE_TYPE(0,"库存宠物"),
        FOSTER_TYPE(1,"培育宠物");
        private int code;
        private String msg;

        SaleTypeEnum(int code,String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }
    }
}
